<template>
    <div>
        <el-form :inline="true" v-model="wh">
            <el-form-item label="维护主题">
                <el-input v-model="wh.m_subject"></el-input>
            </el-form-item>
            <el-form-item label="维护人">
                <el-input v-model="wh.maintainer" type="date"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="list()">检索</el-button>
            </el-form-item>
        </el-form>
        <h1 style="text-align: center;margin-top: 30px;margin-bottom: 30px">施工清单维护列表</h1>
        <div>
            <el-table :data="MaintenanceList" >
                <el-table-column prop="id" label="维护编号" >
                </el-table-column>
                <el-table-column prop="m_subject" label="维护主题" >
                </el-table-column>
                <el-table-column prop="m_date" label="设置时间" > </el-table-column>
                <el-table-column prop="project_name" label="所属项目"> </el-table-column>
                <el-table-column prop="maintainer" label="维护人"> </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
    import {ConstructionMaintenanceService} from '../../model/ww/ConstructionMaintenanceService.js'
    const constructionMaintenanceService=ConstructionMaintenanceService.getInstance()
    export default {
        name: "OutputList",
        data(){
            return {
                wh:{} ,//高级检索对象
                MaintenanceList:[]  //表格数据
            }

        },
        methods:{
            list(){
                constructionMaintenanceService.list(this.wh).then((response)=>{
                    this.MaintenanceList=response.data.data
                })
            }
        },
        created(){
            this.list()
        }

    }
</script>

<style scoped>

</style>